﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Demo.Models
{
    /// <summary>
    /// ui模版
    /// </summary>
    [Description("模版")]
    public class UiTemplate : BaseEntity<long>
    {
        public UiTemplate()
        {
            MicroSites = new List<MicroSite>();
        }

        /// <summary>
        /// 模版名称
        /// </summary>
        /// <value>The name of the template.</value>
        public string Name { get; set; }

        /// <summary>
        /// 模版资源路径
        /// </summary>
        /// <value>The source path.</value>
        public string SourcePath { get; set; }

        /// <summary>
        /// 模版预览的路径
        /// </summary>
        /// <value>The view URL.</value>
        public string ViewUrl { get; set; }


        /// <summary>
        /// 模版内容
        /// </summary>
        /// <value>The content.</value>
        public string Content { get; set; }


        /// <summary>
        /// Gets or sets the micro sites.
        /// </summary>
        /// <value>The micro sites.</value>
        public virtual ICollection<MicroSite> MicroSites { get; set; }

    }
}
